package cn.highedu.demo.service.demos;

import cn.highedu.demo.service.DubboDemoService;
import org.apache.dubbo.config.annotation.DubboService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@DubboService
public class DubboDemoServiceImpl implements DubboDemoService {

    Logger logger = LoggerFactory.getLogger(DubboDemoServiceImpl.class);

    @Override
    public String hello(String name) {
        logger.info("Hello, " + name + " from Service Provider!");
        return "Hello, " + name + " from Service Provider!";
    }
}
